View Javadoc
1 package jrre.instructionset.pop.localvariable; 2 3 import jrre.*; 4 5 public class AStore extends jrre.instructionset.Instruction { 6 7 int operandOne; 8 9 public AStore(int operandOne){ 10 11 this.operandOne = operandOne; 12 13 name = "astore operand"; 14 description = "foo foo moo poo"; 15 length = 1; 16 } 17 18 /*** 19 * Executes the <strong><code>istore</code></strong> instruction. 20 * 21 */ 22 public void execute(){ 23 24 Stack.setLocalVariable(operandOne, Stack.popOperand()); 25 26 } 27 28 public String toString(){ 29 StringBuffer toReturn = new StringBuffer(); 30 toReturn.append("astore"); 31 return toReturn.toString(); 32 } 33 }

This page was automatically generated by Maven